<?=$this->load->view('include_header',null)?>
	<div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
			<form id="form" method="POST" action="<?=site_url('order/ticketres_update/'.$cateid)?>">
			<fieldset>
			<legend>机票订单</legend>
			
			<label>承载人:</label><input type="text" name="name" value="<?=@$info->name?>" />多人请用空格做分割，例如:LIU/BO YANG/DATONG<br />
			<label>出发时间:</label><input type="text" name="leave_date" id="leave_date" value="<?=@$info->leave_date?>" /> <br />
			<label>返回时间:</label><input type="text" name="reversal_date" id="reversal_date" value="<?=@$info->reversal_date?>" /> <br />
			
			<input type="hidden" name="id" value="<?=$id?>" />
			<input id="button1" type="submit" value="提交信息" />
			<input id="button2" type="reset" value="重置" />
			</fieldset>
			</form>
			</div>

		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

	<script type="text/javascript">
	$().ready(function() {
	  $("#form").validate({
		rules: {
			name:{
			 required:true,
			 minlength:3
			},
			leave_date:{
			 required:true
			},
			reversal_date:{
			 required:true
			}
		}
	  });
		$( "#leave_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true,
			dayNamesShort: ["SU","MO","TU","WE","TH","FR","SA"],
			dateFormat: "DddM"
		});
		$( "#reversal_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true,
			dayNamesShort: ["SU","MO","TU","WE","TH","FR","SA"],
			dateFormat: "DddM"
		});
	});
	</script>
	
<?=$this->load->view('include_footer',null)?>
